package com.xlh.pojo.courseTest;

import java.io.Serializable;
import java.util.Date;

public class CourseTestPaperQuestion implements Serializable {
    private Long id;

    /**
     * 试卷id
     *
     * @mbg.generated
     */
    private Long paperId;

    /**
     * 试题序号
     *
     * @mbg.generated
     */
    private Integer orderNumber;

    /**
     * 试题来源id，主要用于实验题环境的获取
     *
     * @mbg.generated
     */
    private Long originQuestionId;

    /**
     * 问题类型
     *
     * @mbg.generated
     */
    private Integer type;

    /**
     * 题目分值
     *
     * @mbg.generated
     */
    private Integer score;

    /**
     * 问题内容
     *
     * @mbg.generated
     */
    private String content;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 变更时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    /**
     * md文件内容
     *
     * @mbg.generated
     */
    private String mdContent;

    /**
     * html文件内容
     *
     * @mbg.generated
     */
    private String htmlContent;

    private static final long serialVersionUID = 1L;

    public CourseTestPaperQuestion(int orderNumber, CourseQuestionRepository question, Long paperId, Integer score) {
        this(orderNumber, paperId, question.getId(), question.getQuestionType(), score, question.getMdContent(), question.getHtmlContent());
    }

    public CourseTestPaperQuestion() {
    }

    public CourseTestPaperQuestion(Integer orderNumber, Long paperId, Long originQuestionId, Integer type, Integer score, String mdContent, String htmlContent) {
        this.orderNumber = orderNumber;
        this.paperId = paperId;
        this.originQuestionId = originQuestionId;
        this.type = type;
        this.score = score;
        this.mdContent = mdContent;
        this.htmlContent = htmlContent;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getOriginQuestionId() {
        return originQuestionId;
    }

    public void setOriginQuestionId(Long originQuestionId) {
        this.originQuestionId = originQuestionId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getMdContent() {
        return mdContent;
    }

    public void setMdContent(String mdContent) {
        this.mdContent = mdContent;
    }

    public String getHtmlContent() {
        return htmlContent;
    }

    public void setHtmlContent(String htmlContent) {
        this.htmlContent = htmlContent;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", paperId=").append(paperId);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", originQuestionId=").append(originQuestionId);
        sb.append(", type=").append(type);
        sb.append(", score=").append(score);
        sb.append(", content=").append(content);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", mdContent=").append(mdContent);
        sb.append(", htmlContent=").append(htmlContent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}